<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .container {
        width: 200px;
        overflow-x: scroll;
        border: 1px solid #000;
        display: flex;
        flex-direction: column;
        /* align-items: safe center; */
        align-items: center;
        /* align-items: unsafe center; */
      }
      .container > div {
        /* margin: auto; */
      }
      .item1 {
        margin: auto;
        width: 300px;
      }

      .box {
        display: flex;
        width: 400px;
        border: 1px solid #000;
      }
      .box > div {
        /* flex: initial; */
        flex: 1;
        /* min-width: 0; */
        border: 1px solid green;
      }
      .bi1 {
        height: 300px;
        background: yellow;
      }
      .bi2 {
        height: 200px;
        background: #369;
      }
      .bi3 {
        height: 100px;
        background: blueviolet;
      }
      .bi4 {
      }
    </style>
  </head>
  <body>
    <div class="box">
      <div class="bi1">Lorem</div>
      <div class="bi2">ncidunt. Aperi</div>
      <div class="bi3">Lorem ipsum, dolor sit amet consectetur adipisicin</div>
      <div class="bi4">
        <span>23333333333333333333333333333333333333333333333333</span>
      </div>
    </div>
    <div class="container">
      <div class="item1">
        Lorem ipsum, dolor sit amet consectetur adipisicing elit. Aliquid iusto,
        ratione harum magni rem eaque minus voluptatem nostrum. Exercitationem
        minus ipsa facilis nam incidunt. Aperiam quod obcaecati ad iusto alias.
      </div>
      <div class="item">123</div>
      <div class="item">word</div>
    </div>
  </body>
</html>
